<!-- <!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<tr>  
    <td class="left"><label>上级分类：</label></td>  
    <td>  
        <select name="parent_id">  
            <option value="0">顶级分类</option>  
            <volist name="row" id="val">  
                <option value="{$val.term_id}">{$val['html']}{$val.name}</option>  
            </volist>  
        </select>  
    </td>  
	</tr>  
	<tr>
		<input type="text" value='' name='name'>
	</tr>
</body>
</html>
 -->
<include file="Public:js" /> 
<div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">系统设置</span></div>
        </div>
        
        <div class="result-wrap">
            <form action="{:U('Terms/addFieldSub')}" method="post" id="myform" name="myform">
            <input type="hidden" name="term_id" value="{$term_id}">
                <div class="config-items">
                    <div class="config-title">
                        <h1><i class="icon-font">&#xe00a;</i>添加字段</h1>
                    </div>
                    <div class="result-content">
                        <table width="100%" class="insert-tab">
                            <tbody>
                           
                            <tr>
                                <th width="15%"><i class="require-red">*</i>字段分类：</th>
                               <!--  <td><input type="{$vo.type}" id="{$vo.id}" value="{$vo.code_value}" size="85" name="value[{$vo.id}]" class="common-text"></td> -->
                                <td>  
							        <select name="form_type">  
                                     
                                        <option value="text">单行文本</option>  
                                        <option value="textarea">多行文本</option>  
                                        <option value="radio">单选</option>  
                                        <option value="checkbox">多选</option>  
                                        <option value="datetime">日期</option>  
                                        <option value="editor">编辑器</option>  
                                        <!-- <option value="editor">上传图片</option>   -->
                                        <option value="pic">上传图片</option>  
							            <option value="fujian">上传附件</option>  
							             
							        </select>  
							    </td> 

                            </tr>
                           	<tr>
                           		 <th width="15%"><i class="require-red">*</i>字段名：</th>
                               <!--  <td><input type="{$vo.type}" id="{$vo.id}" value="{$vo.code_value}" size="85" name="value[{$vo.id}]" class="common-text"></td> -->
                                
						       <td>
						       		<input type="text"  datatype="*" nullmsg="请填写字段名" placeholder="请输入字段名 英文字母 字数不超过30" errormsg="请填写字段名"    name="field" class="common-text"> 
						       </td>
							     
                           	</tr>
                            <tr>
                                 <th width="15%"><i class="require-red">*</i>字段标题：</th>
                               <!--  <td><input type="{$vo.type}" id="{$vo.id}" value="{$vo.code_value}" size="85" name="value[{$vo.id}]" class="common-text"></td> -->
                                
                               <td>
                                    <input type="text" placeholder="请输入字段标题，用于表单显示"  datatype="*" nullmsg="请填写字段标识" errormsg="请填写字段标识"    name="name" class="common-text"> 
                               </td>
                                 
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red">*</i>字段所属分类：</th>
                               <!--  <td><input type="{$vo.type}" id="{$vo.id}" value="{$vo.code_value}" size="85" name="value[{$vo.id}]" class="common-text"></td> -->
                                
                               <td>
                                    <select name="position">                                     
                                        <option value="1">基本信息</option>  
                                        <option value="2">检测信息</option>  
                                        <option value="3">其他信息</option>                                       
                                    </select>  
                               </td>
                                 
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>可选值列表：</th>
                               <!--  <td><input type="{$vo.type}" id="{$vo.id}" value="{$vo.code_value}" size="85" name="value[{$vo.id}]" class="common-text"></td> -->
                                
                               <td>
                                    <!-- <input type="textarea"     name="set" class="common-text">  -->
                                    <textarea name="value" id="" cols="30" rows="10" placeholder="选择(多选/单选)设置值，一行代表一个可选值"></textarea>
                               </td>
                                 
                            </tr>
                                <tr>
                                    <th></th>
                                    <td>
                                      
                                        <input type="submit" value="提交" class="btn btn-primary btn6 mr10">
                                        <input type="button" value="返回" onclick="history.go(-1)" class="btn btn6">
                                    </td>
                                </tr>
                            </tbody></table>
                    </div>
                </div>
                </form>
                
        </div>
    </div>

<script type="text/javascript">
$(function(){
	
	 $("#myform").Validform({
	 //	tiptype:2
	 });  //就这一行代码！;
		
	  
	
})
</script>